Skip to content

Conversation

szepeviktor
Copy link

@francescobianco I have found some errors with @phpstan.
Please continue from where I've left off.

Comment on lines 246 to +254
public static function renameMailbox($imap, $from, $to)
{
if (is_a($imap, Connection::class)) {
$client = $imap->getClient();

return $client->createFolder($mailbox);
if (!is_a($imap, Connection::class)) {
return Errors::invalidImapConnection(debug_backtrace(), 1, false);
}

return imap_createmailbox($imap, $mailbox);
$client = $imap->getClient();

return $client->renameFolder($from, $to);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure here.
Please fix it again if it is incorrect.

AbyssMorganCTI

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants